package com.c2c.po.enums.impl;


import com.c2c.po.enums.BaseCodeEnum;

/**
 * 商品状态
 */
public enum GoodiesState implements BaseCodeEnum {

    REVIEWED_NOT(1, "未审核"),
    REVIEWED_SUCCESS(2, "通过审核"),
    REVIEWED_FAIL(3, "未通过审核"),
    GOODS_SOLD(4, "已卖出"),
    GOODS_OFF(5, "已下架");

    private int goodiesStateId;
    private String goodiesState;

    @Override
    public int getCode() {
        return this.goodiesStateId;
    }

    @Override
    public String getInstance() {
        return this.goodiesState;
    }


    GoodiesState(int goodiesStateId, String goodiesState) {
        this.goodiesStateId = goodiesStateId;
        this.goodiesState = goodiesState;
    }

    public int getGoodiesStateId() {
        return goodiesStateId;
    }

    public void setGoodiesStateId(int goodiesStateId) {
        this.goodiesStateId = goodiesStateId;
    }

    public String getGoodiesState() {
        return goodiesState;
    }

    public void setGoodiesState(String goodiesState) {
        this.goodiesState = goodiesState;
    }

    @Override
    public String toString() {
        return "GoodiesState{" +
                "goodiesStateId=" + goodiesStateId +
                ", goodiesState='" + goodiesState + '\'' +
                '}';
    }
}
